package com.itheima.service.impl;


import com.itheima.dao.RoleMapper;
import com.itheima.domain.po.Role;
import com.itheima.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    RoleMapper roleMapper;

    public List<Role> findAllRoles() {
        List<Role> list = roleMapper.findAll();
        return list;
    }
}
